package edu.ucsc.gameAI.conditions;

import edu.ucsc.gameAI.ICondition;
import pacman.game.Constants;
import pacman.game.Constants.GHOST;
import pacman.game.Game;

public class LairTime implements ICondition{

	GHOST gghost;
	int min;
	int max;

	public LairTime(Constants.GHOST ghost, int min, int max) {
		gghost = ghost;
		this.min = min;
		this.max = max;
	}

	public boolean test(Game game) {
		return min < game.getGhostLairTime(gghost) && max > game.getGhostLairTime(gghost);
	}

}
